/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.model.impl;

import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;

import slcu.model.CategoriaDisciplina;

import java.io.Serializable;

/**
 * The cache model class for representing CategoriaDisciplina in entity cache.
 *
 * @author tito
 * @see CategoriaDisciplina
 * @generated
 */
public class CategoriaDisciplinaCacheModel implements CacheModel<CategoriaDisciplina>,
	Serializable {
	@Override
	public String toString() {
		StringBundler sb = new StringBundler(11);

		sb.append("{categoriaId=");
		sb.append(categoriaId);
		sb.append(", disciplinaId=");
		sb.append(disciplinaId);
		sb.append(", nombre=");
		sb.append(nombre);
		sb.append(", edadMinima=");
		sb.append(edadMinima);
		sb.append(", edadMaxima=");
		sb.append(edadMaxima);
		sb.append("}");

		return sb.toString();
	}

	public CategoriaDisciplina toEntityModel() {
		CategoriaDisciplinaImpl categoriaDisciplinaImpl = new CategoriaDisciplinaImpl();

		categoriaDisciplinaImpl.setCategoriaId(categoriaId);
		categoriaDisciplinaImpl.setDisciplinaId(disciplinaId);

		if (nombre == null) {
			categoriaDisciplinaImpl.setNombre(StringPool.BLANK);
		}
		else {
			categoriaDisciplinaImpl.setNombre(nombre);
		}

		categoriaDisciplinaImpl.setEdadMinima(edadMinima);
		categoriaDisciplinaImpl.setEdadMaxima(edadMaxima);

		categoriaDisciplinaImpl.resetOriginalValues();

		return categoriaDisciplinaImpl;
	}

	public long categoriaId;
	public long disciplinaId;
	public String nombre;
	public long edadMinima;
	public long edadMaxima;
}